package com.bjx.flow.mmx.service;

import com.bjx.flow.mmx.domain.entity.MmxFlowDefinitionEntity;

/**
 * @desc: 流程定义服务接口
 * @author: liushuai
 * @date: 2023/05/17
 */
public interface MmxFlowDefinitionService {



    /**
     * 流程定义部署
     * @param flowData
     * @return: com.bjx.flow.mmx.domain.entity.FlowDefinitionEntity
     * @Author: liushuai
     * @Date: 2023/5/22 11:20
     */
    MmxFlowDefinitionEntity deploy(String flowData);


    /**
     * 根据流程定义key查询最新的流程定义
     * @param definitionKey
     * @return: com.bjx.flow.mmx.domain.entity.FlowDefinitionEntity
     * @Author: liushuai
     * @Date: 2023/5/22 11:20
     */
    MmxFlowDefinitionEntity selectFlowDefinitionByDefinitionKey(String definitionKey);
}
